home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / List.h.z / List.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  8.8 KB  |  270 lines

  1. /*
  2.  * List.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: List.h /main/cde1_maint/2 1995/08/18 19:10:00 drk $ */
  36. /*
  37. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  38. #ifndef _XmList_h
  39. #define _XmList_h
  40.  
  41. #include <Xm/Xm.h>
  42.  
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46.  
  47. externalref WidgetClass xmListWidgetClass;
  48.  
  49. #define XmINITIAL     0
  50. #define XmADDITION    1
  51. #define XmMODIFICATION    2
  52.  
  53. #ifndef XmIsList
  54. #define XmIsList(w)    XtIsSubclass(w, xmListWidgetClass)
  55. #endif /* XmIsList */
  56.  
  57. typedef struct _XmListClassRec * XmListWidgetClass;
  58. typedef struct _XmListRec      * XmListWidget;
  59.  
  60.  
  61. /********    Public Function Declarations    ********/
  62. #ifdef _NO_PROTO
  63.  
  64. extern void XmListAddItem() ;
  65. extern void XmListAddItems() ;
  66. extern void XmListAddItemsUnselected() ;
  67. extern void XmListAddItemUnselected() ;
  68. extern void XmListDeleteItem() ;
  69. extern void XmListDeleteItems() ;
  70. extern void XmListDeletePositions() ;
  71. extern void XmListDeletePos() ;
  72. extern void XmListDeleteItemsPos() ;
  73. extern void XmListDeleteAllItems() ;
  74. extern void XmListReplaceItems() ;
  75. extern void XmListReplaceItemsPos() ;
  76. extern void XmListReplacePositions() ;
  77. extern void XmListReplaceItemsUnselected() ;
  78. extern void XmListReplaceItemsPosUnselected() ;
  79. extern void XmListSelectItem() ;
  80. extern void XmListSelectPos() ;
  81. extern void XmListDeselectItem() ;
  82. extern void XmListDeselectPos() ;
  83. extern void XmListDeselectAllItems() ;
  84. extern void XmListSetPos() ;
  85. extern void XmListSetBottomPos() ;
  86. extern void XmListSetItem() ;
  87. extern void XmListSetBottomItem() ;
  88. extern void XmListSetAddMode() ;
  89. extern Boolean XmListItemExists() ;
  90. extern int XmListItemPos() ;
  91. extern int XmListGetKbdItemPos() ;
  92. extern Boolean XmListSetKbdItemPos() ;
  93. extern Boolean XmListGetMatchPos() ;
  94. extern Boolean XmListGetSelectedPos() ;
  95. extern void XmListSetHorizPos() ;
  96. extern int XmListYToPos();
  97. extern Boolean XmListPosToBounds();
  98. extern void XmListUpdateSelectedList() ;
  99. extern Boolean XmListPosSelected();
  100. extern Widget XmCreateList() ;
  101. extern Widget XmCreateScrolledList() ;
  102.  
  103. #else
  104.  
  105. extern void XmListAddItem( 
  106.                         Widget w,
  107.                         XmString item,
  108.                         int pos) ;
  109. extern void XmListAddItems( 
  110.                         Widget w,
  111.                         XmString *items,
  112.                         int item_count,
  113.                         int pos) ;
  114. extern void XmListAddItemsUnselected( 
  115.                         Widget w,
  116.                         XmString *items,
  117.                         int item_count,
  118.                         int pos) ;
  119. extern void XmListAddItemUnselected( 
  120.                         Widget w,
  121.                         XmString item,
  122.                         int pos) ;
  123. extern void XmListDeleteItem( 
  124.                         Widget w,
  125.                         XmString item) ;
  126. extern void XmListDeleteItems( 
  127.                         Widget w,
  128.                         XmString *items,
  129.                         int item_count) ;
  130. extern void XmListDeletePositions(
  131.                         Widget    w,
  132.                         int      *position_list,
  133.                         int       position_count ) ;
  134. extern void XmListDeletePos( 
  135.                         Widget w,
  136.                         int pos) ;
  137. extern void XmListDeleteItemsPos( 
  138.                         Widget w,
  139.                         int item_count,
  140.                         int pos) ;
  141. extern void XmListDeleteAllItems( 
  142.                         Widget w) ;
  143. extern void XmListReplaceItems( 
  144.                         Widget w,
  145.                         XmString *old_items,
  146.                         int item_count,
  147.                         XmString *new_items) ;
  148. extern void XmListReplaceItemsPos( 
  149.                         Widget w,
  150.                         XmString *new_items,
  151.                         int item_count,
  152.                         int position) ;
  153. extern void XmListReplaceItemsUnselected( 
  154.                         Widget w,
  155.                         XmString *old_items,
  156.                         int item_count,
  157.                         XmString *new_items) ;
  158. extern void XmListReplaceItemsPosUnselected( 
  159.                         Widget w,
  160.                         XmString *new_items,
  161.                         int item_count,
  162.                         int position) ;
  163. extern void XmListReplacePositions(
  164.                         Widget    w,
  165.                         int      *position_list,
  166.                         XmString *item_list,
  167.                         int       item_count ) ;
  168. extern void XmListSelectItem( 
  169.                         Widget w,
  170.                         XmString item,
  171. #if NeedWidePrototypes
  172.                         int notify) ;
  173. #else
  174.                         Boolean notify) ;
  175. #endif /* NeedWidePrototypes */
  176. extern void XmListSelectPos( 
  177.                         Widget w,
  178.                         int pos,
  179. #if NeedWidePrototypes
  180.                         int notify) ;
  181. #else
  182.                         Boolean notify) ;
  183. #endif /* NeedWidePrototypes */
  184. extern void XmListDeselectItem( 
  185.                         Widget w,
  186.                         XmString item) ;
  187. extern void XmListDeselectPos( 
  188.                         Widget w,
  189.                         int pos) ;
  190. extern void XmListDeselectAllItems( 
  191.                         Widget w) ;
  192. extern void XmListSetPos( 
  193.                         Widget w,
  194.                         int pos) ;
  195. extern void XmListSetBottomPos( 
  196.                         Widget w,
  197.                         int pos) ;
  198. extern void XmListSetItem( 
  199.                         Widget w,
  200.                         XmString item) ;
  201. extern void XmListSetBottomItem( 
  202.                         Widget w,
  203.                         XmString item) ;
  204. extern void XmListSetAddMode( 
  205.                         Widget w,
  206. #if NeedWidePrototypes
  207.                         int add_mode) ;
  208. #else
  209.                         Boolean add_mode) ;
  210. #endif /* NeedWidePrototypes */
  211. extern Boolean XmListItemExists( 
  212.                         Widget w,
  213.                         XmString item) ;
  214. extern int XmListItemPos( 
  215.                         Widget w,
  216.                         XmString item) ;
  217. extern int XmListGetKbdItemPos(
  218.                         Widget w) ;
  219. extern Boolean XmListSetKbdItemPos(
  220.                         Widget w,
  221.                         int    pos ) ;
  222. extern int XmListYToPos( 
  223.                         Widget w,
  224.                         Position y) ; /* NeedWidePrototypes ????? */
  225. extern Boolean XmListPosToBounds(
  226.                         Widget w,
  227.                         int         position,
  228.                         Position   *x,
  229.                         Position   *y,
  230.                         Dimension  *width,
  231.                         Dimension  *height) ;
  232. extern Boolean XmListGetMatchPos( 
  233.                         Widget w,
  234.                         XmString item,
  235.                         int **pos_list,
  236.                         int *pos_count) ;
  237. extern Boolean XmListGetSelectedPos( 
  238.                         Widget w,
  239.                         int **pos_list,
  240.                         int *pos_count) ;
  241. extern void XmListSetHorizPos( 
  242.                         Widget w,
  243.                         int position) ;
  244. extern void XmListUpdateSelectedList( 
  245.                         Widget w) ;
  246. extern Boolean XmListPosSelected(
  247.             Widget     w,
  248.             int     pos);
  249. extern Widget XmCreateList( 
  250.                         Widget parent,
  251.                         char *name,
  252.                         ArgList args,
  253.                         Cardinal argCount) ;
  254. extern Widget XmCreateScrolledList( 
  255.                         Widget parent,
  256.                         char *name,
  257.                         ArgList args,
  258.                         Cardinal argCount) ;
  259.  
  260. #endif /* _NO_PROTO */
  261. /********    End Public Function Declarations    ********/
  262.  
  263.  
  264. #ifdef __cplusplus
  265. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  266. #endif
  267.  
  268. #endif /* _XmList_h */
  269. /* DON'T ADD ANYTHING AFTER THIS #endif */
  270.